<?php
//force redirect to secure page
if(REG_USE_SSL){
	if($_SERVER['SERVER_PORT'] != '443') 
	{ 
		header('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); 
		exit(); 
	}
}
session_start();

// includes
include_once "regsettings.php";

include_once REG_CONNECT_FILE;
include_once REG_QUERY_FILE;

// List all users as table
$qry_show_users = "SELECT user_id, user_name, firstname, lastname, email FROM users WHERE 1 "

// get data
$arr_show_users = get_array_query($qry_show_users);

// make table with 'edit' and 'delete' columns

foreach($arr_show_users AS $row){
	$str_show_users = "<tr>";
	foreach($row AS $value){
	
	}
	$str_show_users .= "<td><a href='registration.php?user_id=" . $row[$user_id] . "&mode=edit>Edit</td>";
	$str_show_users .= "<td><a href='registration.php?user_id=" . $row[$user_id] . "&mode=edit>Delete</td>";

	$str_show_users .= "</tr>/n";
}




?>